package org.omg.stub.javax.ejb;

import com.ibm.ejs.container.*;

/**
 * EJSRemoteStatelessSessionLog_969841b6
 */
public class EJSRemoteStatelessSessionLog_969841b6 extends EJSWrapper implements SessionLog {
	/**
	 * EJSRemoteStatelessSessionLog_969841b6
	 */
	public EJSRemoteStatelessSessionLog_969841b6() throws java.rmi.RemoteException {
		super();	}
	/**
	 * registraLog
	 */
	public boolean registraLog(com.grupobbva.iici.serializable.Log datos) throws java.rmi.RemoteException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		boolean _EJS_result = false;
		try {
			if (container.doesJaccNeedsEJBArguments( this ))
			{
				_jacc_parms = new Object[1];
				_jacc_parms[0] = datos;
			}
	org.omg.stub.javax.ejb.SessionLogBean beanRef = (org.omg.stub.javax.ejb.SessionLogBean)container.preInvoke(this, 0, _EJS_s, _jacc_parms);
			_EJS_result = beanRef.registraLog(datos);
		}
		catch (java.rmi.RemoteException ex) {
			_EJS_s.setUncheckedException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedException(ex);
			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);
		}

		finally {
			try{
				container.postInvoke(this, 0, _EJS_s);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return _EJS_result;
	}
	/**
	 * obtenerSecuenciaLog
	 */
	public int obtenerSecuenciaLog() throws java.rmi.RemoteException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		int _EJS_result = 0;
		try {
			if (container.doesJaccNeedsEJBArguments( this ))
			{
				_jacc_parms = new Object[0];
			}
	org.omg.stub.javax.ejb.SessionLogBean beanRef = (org.omg.stub.javax.ejb.SessionLogBean)container.preInvoke(this, 1, _EJS_s, _jacc_parms);
			_EJS_result = beanRef.obtenerSecuenciaLog();
		}
		catch (java.rmi.RemoteException ex) {
			_EJS_s.setUncheckedException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedException(ex);
			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);
		}

		finally {
			try{
				container.postInvoke(this, 1, _EJS_s);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return _EJS_result;
	}
	/**
	 * findAllLog
	 */
	public java.util.Vector findAllLog(java.lang.String fecIni, java.lang.String fecFin, java.lang.String codigoOficina) throws java.rmi.RemoteException {
		EJSDeployedSupport _EJS_s = container.getEJSDeployedSupport(this);
		Object[] _jacc_parms = null;
		java.util.Vector _EJS_result = null;
		try {
			if (container.doesJaccNeedsEJBArguments( this ))
			{
				_jacc_parms = new Object[3];
				_jacc_parms[0] = fecIni;
				_jacc_parms[1] = fecFin;
				_jacc_parms[2] = codigoOficina;
			}
	org.omg.stub.javax.ejb.SessionLogBean beanRef = (org.omg.stub.javax.ejb.SessionLogBean)container.preInvoke(this, 2, _EJS_s, _jacc_parms);
			_EJS_result = beanRef.findAllLog(fecIni, fecFin, codigoOficina);
		}
		catch (java.rmi.RemoteException ex) {
			_EJS_s.setUncheckedException(ex);
		}
		catch (Throwable ex) {
			_EJS_s.setUncheckedException(ex);
			throw new java.rmi.RemoteException("bean method raised unchecked exception", ex);
		}

		finally {
			try{
				container.postInvoke(this, 2, _EJS_s);
			} finally {
				container.putEJSDeployedSupport(_EJS_s);
			}
		}
		return _EJS_result;
	}
}
